<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Function Info.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>WinXDraw_MakeLogFont</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
.style3 {font-size: medium}
-->
</style>

<link href="../../WinXStyles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: x-large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style2 {
	font-size: large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<h1 class="style1"><img src="../../WinX48.png" width="48" height="48" align="absmiddle"> <!-- InstanceBeginEditable name="title" -->WinXDraw_MakeLogFont<!-- InstanceEndEditable --></h1>
<hr>

<!-- InstanceBeginEditable name="Prototype" -->
<p>LOGFONT logFont = WinXDraw_MakeLogFont (STRING font, height, style)</p>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="Description" -->
<p>Fills in a LOGFONT structure </p>
<!-- InstanceEndEditable -->
<table width="80%" border="1" cellpadding="0" cellspacing="0">
  <tr bgcolor="#CCCCCC">
    <th width="24%"><span class="style3">Parameter</span></th>
    <th width="76%"><span class="style3">Description</span></th>
  </tr>
  <!-- InstanceBeginRepeat name="Parameter Table" --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->STRING font <!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The name of the font, e.g. &quot;Arial&quot; <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->height<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The height of the font in pixels <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->style<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->A set of flags describing attributes of the text. See remarks for more info<!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
</table>
<h3>Returns</h3>
<!-- InstanceBeginEditable name="Return Info" -->
<p>A filled in LOGFONT structure </p>
<!-- InstanceEndEditable -->
<h3>Remarks</h3>
<!-- InstanceBeginEditable name="Remarks" -->
<p>The style parameter can be any combination of</p>
<dl>
  <dt>$$FONT_BOLD</dt>
  <dd>Bold</dd>
  <dt>$$FONT_ITALIC</dt>
  <dd>Italic</dd>
  <dt>$$FONT_UNDERLINE</dt>
  <dd>Underline</dd>
  <dt>$$FONT_STRIKEOUT</dt>
  <dd>Strikeout</dd>
</dl>
<!-- InstanceEndEditable -->
<h3>Examples</h3>
<table width="80%"  border="0">
  <tr>
    <td bgcolor="#C6C6FF"><!-- InstanceBeginEditable name="Example Code" -->
      <p class="codeStyle">'Declare the LOGFONT structure<br>
        LOGFONT logFont
</p>
      <p class="codeStyle">...      </p>
      <p class="codeStyle">'Fill in a LOGFONT for bold italic Arial at 20 pixels<br>
        logFont = WinXDraw_MakeLogFont (&quot;Arial&quot;, 20, $$FONT_BOLD|$$FONT_ITALIC)    </p>
    <!-- InstanceEndEditable --></td>
  </tr>
</table>

<h2 class="style2">Related Links</h2>
<!-- InstanceBeginEditable name="Related Links" -->
<p><a href="../../WinX%20Programmer%27s%20Guide/Auto%20Draw.htm/Text.htm">Text and Fonts</a><br>
<a href="../Auto%20Draw.htm/WinXDrawText.htm">WinXDrawText</a><br>
<a href="../General.htm/WinXSetFont.htm">WinXSetFont</a></p>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
